package com.qf.dubbo.service.impl;

import com.qf.dubbo.service.DeviceService;
import org.apache.dubbo.config.annotation.Service;


//@Service//注入到注册中心，同时注入到spring容器中
@Service(timeout = 3000,version = "time")
public class TimeoutDeviceServiceImpl implements DeviceService {
    @Override
    public String showDevice(Integer id) {
        System.out.println("produce的TimeoutDeviceServiceImpl中showDevice方法被触发");

        return "device----"+id;
    }
}
